
//
//  DataPickerVie.h
//  MicroAPP
//
//  Created by 陈区 on 13-8-22.
//  Copyright (c) 2013年 陈区. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@class DatePickerView;
@protocol DatePickerViewDelegate<NSObject>

- (void)didDatePickerViewCancelClicked:(DatePickerView *)aPickerView;
- (void)didDatePickerViewDoneClicked:(DatePickerView *)aPickerView;

@end

typedef void(^DatePickerBlock) (NSString * dateString);

@interface DatePickerView : UIView
{
    UIDatePicker *m_datePicker;
    //    id<DatePickerViewDelegate> fundelegate;
    UILabel *m_space;
    
    NSString *m_formatTime;
    id m_myValue;
    
    UIView  *boxView;
    
}

@property(nonatomic, strong) UIDatePicker *datePicker;
@property(nonatomic, weak) id<DatePickerViewDelegate> fundelegate;
@property (nonatomic, strong) UILabel *space;
@property (nonatomic, strong) NSString * formatTime;
@property(nonatomic,assign)id myValue;
@property (nonatomic,assign) BOOL nolimit;/**<不限制日期选择*/

-(NSDate *)selectDate;
-(void)changes;

+ (__kindof DatePickerView *)showDatePickerViewWithDefaultTitle:(NSString *)title onView:(UIView *)superView andBlock:(DatePickerBlock)block;
@property (nonatomic,copy) NSString * titleName; /**<<#mark#>*/
- (void)showPickView;
- (void)hiddenPickView;
- (void)dissmissPickView;
@end

